hvmloader: Build with -Werror.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Apr 2008 12:52:52 +0000 (13:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Apr 2008 12:52:52 +0000 (13:52 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/firmware/Rules.mk
tools/firmware/rombios/32bit/tcgbios/tcgbios.c

index 58b45dcec64d323153f2ef0970330ebe200218f5..47db139592537467ee6a35ea4e0e82311ca95e43 100644 (file)
@@ -6,6 +6,8 @@ CFLAGS :=
 
 include $(XEN_ROOT)/tools/Rules.mk
 
+CFLAGS += -Werror
+
 # Disable PIE/SSP if GCC supports them. They can break us.
 CFLAGS += $(call cc-option,$(CC),-nopie,)
 CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
index 00f929f6c5cf561bbb364051438de781b83c4eb7..e36ca378455c9401ca83619e9a872e658f8191f2 100644 (file)
@@ -923,7 +923,7 @@ uint32_t HashLogExtendEvent32(struct hleei_short *hleei_s, struct hleeo *hleeo,
        struct hlei hlei ; /* HashLogEventInput block */
        struct hleo hleo;  /* HashLogEventOutput block */
        struct hleei_long *hleei_l = (struct hleei_long *)hleei_s;
-       int sh;
+       int sh = 0;
        uint32_t logdataptr;
 
        if (TCG_IsShutdownPreBootInterface() != 0) {